<extend name='Index:index'/>
<block name='ad'></block>
<block name='title'></block>
<block name='head'></block>
<block name='floor'>
	<!-- 页面详情 -->
	<div class="panel panel-primary">
	  <div class="panel-heading">
	  	<div class="row">
	  		<h3 class="col-md-2 panel-title"><a href="<{:U('Index/index')}>">首页</a>>><{$shoprow['name']}></h3>
	  	</div>
	  </div>
	  <div class="panel-body ">
	  		<table class="table table-bordered">
	  			<tr class='warning'>
	  				<th class="text-center">商品</th>
	  				<th class="text-center">价格</th>
	  				<th class="text-center">库存</th>
	  				<th class="text-center">购物车</th>
	  			</tr>
	  			<tr>
	  				<td class="text-center" style="line-height: 150px;"><img src="__PUBLIC__/upload/shop/t_<{$shoprow['img']}>"></td>
	  				<td class="text-center" style="line-height: 150px;"><{$shoprow['price']}>元</td>
	  				<td class="text-center" style="line-height: 150px;"><{$shoprow['stock']}></td>
	  				<td class="text-center" style="line-height: 150px;"><a href="<{:U('ShopCart/index','','')}>/id/<{$shoprow['id']}>" class="btn btn-danger">加入购物车</a></td>
	  			</tr>
	  		</table>
			<div class="panel panel-info">
				<div class="panel-heading">
					<h4 class="panel-title">商品评论</h4>
				</div>
				<div class="panel-body">
					<ul class="list-unstyled comment ">
						<volist name='comments' id='comment'>
						<li >
							<p class="username" ><{$comment['username']}>：</p>
							<p class="content" ><{$comment['content']}></p>
							<p class="time" ><{$comment['time']|date='y-m-d H:i:s',###}></p>
						</li>
						</volist>
					</ul>
				</div>
			</div>
	  </div>
	</div>
	<!-- 页面详情   结束-->
</block>

